package com.suse.jd_system_server.controller;

import com.suse.jd_system_server.auto.empty.Result;
import com.suse.jd_system_server.auto.service.CommentsService;
import com.suse.jd_system_server.service.CommentsService_lhj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/CommentsURL1")
@CrossOrigin
public class CommentsController_lhj {
    @Autowired
    private CommentsService_lhj commentsservice;
    /**
     根据Com_id查询
     */
    @GetMapping("/connect/{hotelId}")
    public Result connect(@PathVariable(value = "hotelId") Long hotelId){
        return Result.buildSuccess(commentsservice.connect(hotelId));
    }
}
